import {createApp} from 'vue'
import App from './App.vue'
import {message} from 'ant-design-vue';
import 'ant-design-vue/es/message/style/css';
import "normalize.css";
import "./assets/css/index.less";
import * as Icons from "@ant-design/icons-vue";
import router from '@/configs/routers/routers'
import {createPinia} from "pinia";
import {setupStore} from "@/store/login/login-store";

const app = createApp(App);
await app.use(createPinia());


// 刷新后从本地缓存加载到 Pinia
app.use(router);
Object.keys(Icons).forEach(key => {
    // @ts-ignore
    app.component(key, Icons[key])
})
app.mount('#app');
// 添加到全局
app.config.globalProperties.$antIcons = Icons
app.config.globalProperties.$message=message;


